package store.lunangangster.nodeflow.test.flow._while.component;

import org.springframework.stereotype.Component;
import store.lunangangster.nodeflow.core.component.WhileComponent;

@Component("springE")
public class SpringCompEWhile extends WhileComponent {

  private int count = 0;

  @Override
  protected boolean processWhile() {
    if (count < 10) {
      count ++;
      return true;
    }
    return false;
  }
}
